#ifndef YUMSYNCWINDOW_H
#define YUMSYNCWINDOW_H

#include <QtGui/QMainWindow>
#include <QDir>
#include <qstringlist.h>
#include "YBMtpSync.h"

namespace Ui
{
    class YumSyncWindow;
}

class YumSyncWindow : public QMainWindow
{
    Q_OBJECT

public:
    YumSyncWindow(QWidget *parent = 0);
    ~YumSyncWindow();

private:
    Ui::YumSyncWindow *ui;
    YBMtpSync *mtp;
    QStringList *fileList;
    SyncInfo syncInfo;

    void findMp3Files(QString path);
    void updateTableWithSyncInfo();
    void fillTableWithTracks();
    void fillRowWithTrack(int row, Track track);

private slots:
    void on_btnSyncPreview_clicked();
    void on_btnSync_clicked();
    void on_btnBrowse_clicked();
    void on_txtPath_returnPressed();
};

#endif // YUMSYNCWINDOW_H

